@echo off

rem Welcome to the MaxsiEnvironment.bat file! This batch file sets up the MD Environment variables!

rem Please enter the name of your computer below. The MaxsiEnvironment.bat batch error will not disappear
rem until you have set the correct computer name. To find your computer name, go to RUN (Windows Key+R)
rem and enter CMD. Then in the command promt, please enter SET COMPUTERNAME and press enter.
rem Then it will output COMPUTERNAME=<YourComputerName>. Now enter the value below.
rem Your Computer Name will >not< be changed.

set MDComputerName=SORTIE-PC


rem Please set the root. folder where Maxsi Distribution should be installed/compiled into.
rem Use \ as folder seperators, the path does not end in \. It's very important that this folder
rem is set correctly.

set MDRoot=C:\Program Files (x86)\Maxsi


rem THE GNU GENERAL PUBLIC LICENSE REQUIRES YOU TO MARK MODIFIED VERSIONS AS SUCH.
rem Therefore, you must enter the name of your build below. (Usually your own name or organisation).
rem It will be compiled into %MDRoot%\%MDBuild%\
rem Do >not< keep the default value.

set MDBuild=Sortie


rem Please enter the version of Visual Studio you are using. 2005 is VS2005 and 2008 is VS2008.
rem (Other versions are not currently supported. We are working on adding MinGW support too!)

set VSLOCALDEV=2008


rem Please enter the version of Visual Studio you are not using. If you are using VS2005, enter 2008.
rem If you are using VS2008, enter 2005. This ensures the correct .sln and .vcproj files are generated
rem for all supported Visual Studio versiongs.

set VSPORTTO=2005


rem Please enter whether you are using a 32-bit system or a 64-bit system.

set MDPSIZE=64


rem ================================================================================
rem Do not edit anything below. Thank you for editing the MaxsiEnvironment.bat file!
rem Remember to save this file!
rem ================================================================================



set MDEnvironmentError=0

if not %MDComputerName%==%COMPUTERNAME% set MDEnvironmentError=1

if %MDEnvironmentError%==1 goto MDError
goto Success

:MDError
echo --------------------------------------------------------------------------------
echo Error: You need to edit the "%SolutionDir%\MaxsiEnvironment.bat" file with notepad prior to compiling/releasing.
echo --------------------------------------------------------------------------------
exit 1

:Success